package core.util
{
	import mx.effects.Move;
	import mx.effects.Parallel;
	import mx.effects.Zoom;
	
	public class CardMover
	{
		public function CardMover()
		{
		}
		public static function getMover(config:Object):Parallel
		{
			var movie:Parallel = new Parallel();
			
			var move:Move = new Move();
			move.xFrom = config.xFrom;
			move.yFrom = config.yFrom;
			move.xTo = config.xTo
			move.yTo = config.yTo;
			movie.addChild(move);
			
			var zoom:Zoom = new Zoom();
			zoom.zoomWidthFrom = config.zFrom;
			zoom.zoomHeightFrom = config.zFrom;
			zoom.zoomWidthTo = config.zTo;
			zoom.zoomHeightTo = config.zTo;
			
			movie.addChild(zoom);
			
			movie.duration = 200;
			return movie;
		}
	}
}